const IP2Region = require('ip2region').default;
class Http {

    //通过ip获取当前位置
    static async obtainTheIPLocation(ipAddress) {
        return new IP2Region().search(ipAddress);
    }
}

module.exports = Http